<!--
<template>
  <view class="main">
    <view v-for="qun in qunList" :key="qun.id"  class="friend-list">
      <view @click="goToFriendDetail(qun)">
        <image :src="qun.headImage" ></image>
      </view>
      <view @click="goToFriendDetail(qun)">
        <text class="nickname">{{ qun.nickName }}</text>
      </view>
&lt;!&ndash;      <view @click="goPrivateChat(qun)">&ndash;&gt;
&lt;!&ndash;        <image src="../../static/images/chat/chat.png" ></image>&ndash;&gt;
&lt;!&ndash;      </view>&ndash;&gt;
    </view>
  </view>
</template>

<script>
import {getGroupUser} from "../../api/chat/user";

export default {
  data() {
    return {
      qunList: [
        // { id: 1, avatar: 'friend1.jpg', nickname: '群1' },
        // { id: 2, avatar: 'friend2.jpg', nickname: '群2' },
        // { id: 3, avatar: 'friend3.jpg', nickname: '群3' },
      ],
    };
  },
  async onLoad() {
    let qunList =  await getGroupUser(1)
    this.qunList = qunList.data
    console.info(this.qunList)
  },
  methods: {
    goToFriendDetail(friend) {
      // 处理好友详情页面跳转逻辑
    },
  },
};
</script>



-->
